import { Toast } from 'antd-mobile'

export const loading = (content = '加载中', duration = 0, mask = true, onClose) => Toast.loading(content, duration, onClose, mask)
export const fail = (content, duration = 2, mask = false, onClose) => Toast.fail(content, duration, onClose, mask)
export const success = (content, duration = 2, mask = false, onClose) => Toast.success(content, duration, onClose, mask)
export const hideToast = () => Toast.hide()
